package com.wecan.base.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @Author liuzhihao
 * @Date 2022.03.24
 * @Version ${version}
 * @Description 消息内容类型
 */
public enum MessageContentType {
    TEXT(0, "文字"),
    IMAGE(1, "图片"),
    AUDIO(2, "语音"),
    VIDEO(3, "视频"),
    RICH_TEXT(4, "富文本"),
    ORDER(5, "订单"),
    KNOWLEDGE(6, "文章"),
    CHARGECONTENT(7, "收费内容");

    @EnumValue
    @JsonValue
    private final int code;

    private final String desc;

    MessageContentType(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }
}
